﻿using System;

namespace _3_6
{
    class Program
    {
        //enum FAMILY
        //{
        //    father,mather,sun=3,sisister,
        //}
        struct Student
        {
            public string name;
            public int age;
            public string adderse;
            public  void PrintfInfor()
            {
                Console.WriteLine(name + " " + age + " " + adderse);
            }
        };
        struct Vector3
        {
            public double x;
            public double y;
            public double distance()
            {
                return Math.Sqrt(x * x + y * y);
            }
        }
        static void Main(string[] args)
        {
            Student student1;
            student1.name = "xiaohua";
            student1.age = 45;
            student1.adderse = "湖南 衡阳";
            Console.WriteLine(student1.name);
            Console.WriteLine(student1.age);
            Console.WriteLine(student1.adderse);
            Student[] student = new Student[3];
            for(int i=0;i<1; i++)
            {
                Console.WriteLine("please write you name:>");
                student[i].name = Console.ReadLine();
                Console.WriteLine("please write you age");
                student[i].age = Convert.ToInt32(Console.ReadLine());
                student[i].adderse = Console.ReadLine();




            }
            student[0].PrintfInfor();
            Vector3 vector1;
            vector1.x = 1;
            vector1.y = 3;
            Console.WriteLine(Math.Round(vector1.distance(),2));



;

        }
    }
}
